/**
 * @summary: 个人管理
 */

export default {
    name: 'personal',
    path: '/personal',
    menuLevel: 0,
    icon: 'user',
    code: 'portal',
    routes: [
        // =============================================================== 个人主页
        {
            name: 'personalPortal',
            path: '/personal/portal',
            code: 'portal:mine',
            component: './Notice/HomePage/index'
        },
        {
            name: 'help',
            path: '/personal/portal/article',
            component: './Article/Help',
            hideInMenu: true,
            code: true
        },
        {
            name: 'rules',
            path: '/personal/portal/rules',
            component: './Notice/Rules/Rules',
            code: 'portal:mine:article:rules',
            hideInMenu: true
        },
        {
            path: '/personal/portal/rules/rulesDetail',
            name: 'rulesDetail',
            component: './Notice/Rules/RulesDetail',
            hideInMenu: true,
            code: 'portal:mine:article:rules'
        },
        {
            path: '/personal/portal/rules/rulesAdd',
            name: 'rulesAdd',
            editName: 'editRule',
            component: './Notice/Rules/RulesAdd',
            hideInMenu: true,
            code: 'portal:mine:article:rules'
        },
        {
            name: 'notice',
            path: '/personal/portal/notice',
            component: './Notice/Mine/NoticeManage',
            code: 'portal:mine:article:notice',
            hideInMenu: true
        },
        {
            path: '/personal/portal/notice/noticeAdd',
            name: 'noticeAdd',
            editName: 'editNotice',
            component: './Notice/Mine/NoticeAdd',
            hideInMenu: true,
            code: 'portal:mine:article:notice'
        },
        {
            path: '/personal/portal/notice/noticeDetail',
            name: 'noticeDetail',
            component: './Notice/Mine/NoticeDetail',
            hideInMenu: true,
            code: 'portal:mine:article:notice',
            openTab: true
        },
        {
            path: '/personal/portal/attendance/mine/list',
            name: 'mineList',
            component: './Attendance/Mine/List',
            code: 'portal:myattendance:main',
            thirdLevel: true,
            hideInMenu: true
        },
        {
            path: '/personal/portal/attendance/mine/list/attendanceDetail',
            name: 'attendanceDetail',
            component: './Attendance/Mine/AttendanceDetail',
            hideInMenu: true,
            code: 'portal:myattendance:attend'
        },
        {
            path: '/personal/portal/attendance/mine/holiday',
            name: 'holiday',
            component: './Attendance/Mine/Holiday',
            code: 'portal:myattendance:holiday',
            hideInMenu: true
        },
        {
            path: '/personal/portal/attendance/mine/overList',
            name: 'overList',
            component: './Attendance/Mine/OvertimeComponents/OverList',
            code: 'portal:myattendance:overtime',
            hideInMenu: true
        },
        {
            path: '/personal/portal/attendance/mine/abnormal',
            name: 'abnormal',
            component: './Attendance/Mine/AbnormalComponents/Abnormal',
            code: 'portal:myattendance:exception',
            hideInMenu: true
        },
        {
            path: '/personal/portal/attendance/mine/tripList',
            name: 'tripList',
            component: './Attendance/Mine/OvertimeComponents/TripList',
            code: 'portal:myattendance:trip',
            hideInMenu: true
        },
        {
            path: '/personal/portal/attendance/mine/outList',
            name: 'outList',
            component: './Attendance/Mine/OvertimeComponents/OutList',
            code: 'portal:myattendance:out',
            hideInMenu: true
        },
        {
            // 发起申请 -----目前被很多页面引用，无法删除
            path: '/personal/portal/flow/mine/list',
            name: 'list',
            component: './Flow/Mine/List/List',
            code: true,
            hideInMenu: true
        },
        {
            // 发起申请-详细
            path: '/personal/portal/flow/mine/list/apply',
            name: 'apply',
            hideInMenu: true,
            editName: 'applyEdit',
            // 添加这个配置说明页面可以动态修改名称
            nameChangeable: true,
            component: './Flow/Mine/ApplyPage/ApplyPage',
            code: true
        },
        // 转正-发起表单
        {
            path: '/personal/portal/flow/mine/applyRegularization',
            name: 'applyRegularization',
            hideInMenu: true,
            code: true,
            component: './OnboardAndLeave/Regularization/RegularizationDetails'
        },
        // 调岗-发起申请
        {
            path: '/personal/portal/flow/mine/applyPost',
            name: 'applyPost',
            hideInMenu: true,
            code: true,
            component: './OnboardAndLeave/AdjustPost/Add/index.js'
        },
        // 离职、为他人离职
        {
            path: '/personal/portal/flow/mine/applyLeave',
            name: 'applyLeave',
            hideInMenu: true,
            code: true,
            // 添加这个配置说明页面可以动态修改名称
            nameChangeable: true,
            component: './OnboardAndLeave/QuitManagement/Add/index.js'
        },
        {
            // 我的申请
            path: '/personal/portal/flow/mine/myApplication',
            name: 'myApplication',
            component: './Flow/Mine/MyApplication/index',
            code: 'portal:myflow:flowlist',
            hideInMenu: true
        },
        {
            // 我的申请-详细
            path: '/personal/portal/flow/mine/myApplication/detail',
            name: 'myApplicationDetail',
            hideInMenu: true,
            component: './Flow/Mine/MyApplication/Detail',
            code: true
        },
        {
            // 待我审批 -- 相关的代码与 经我审批 模块的代码共用，不能删除
            path: '/personal/portal/flow/mine/waitApproval',
            name: 'waitApproval',
            component: './Flow/Mine/WaitApproval/index',
            code: 'portal:myflow:approvelist',
            hideInMenu: true
        },
        {
            // 经我审批
            path: '/personal/portal/flow/mine/myAudited',
            name: 'myAudited',
            component: './Flow/Mine/MyAudited/index',
            code: 'portal:myflow:passmelist',
            hideInMenu: true
        },
        {
            // 待我阅读
            path: '/personal/portal/flow/mine/myAuditRead',
            name: 'myAuditRead',
            component: './Flow/Mine/MyAuditRead/index',
            code: 'portal:myflow:readinglist',
            hideInMenu: true
        },
        {
            // 因为消息提醒跳转详情问题 合并待我审批、经我审批、待我阅读流程详情入口为同一个
            path: '/personal/portal/flow/mine/approvalDetail',
            name: 'approvalDetail',
            hideInMenu: true,
            code: true,
            component: './Flow/Mine/WaitApproval/ApprovalDetail'
        },
        {
            // 我的招聘任务列表
            name: 'task',
            path: '/personal/portal/recruit/task',
            component: './RecruitManage/PositionManage/PositionList',
            code: 'portal:myjob:recruit',
            hideInMenu: true
        },
        {
            // 我的招聘任务详情
            name: 'taskDetail',
            path: '/personal/portal/recruit/task/positiondetails',
            hideInMenu: true,
            code: 'portal:myjob:recruit',
            component: './RecruitManage/PositionManage/Detail'
        },
        {
            // 我的招聘需求
            name: 'demand',
            path: '/personal/portal/recruit/demand',
            component: './RecruitManage/PositionManage/PositionList',
            code: 'portal:myjob:want',
            hideInMenu: true
        },
        {
            // 我的招聘需求详情
            name: 'demandDetail',
            path: '/personal/portal/recruit/demand/positiondetails',
            hideInMenu: true,
            code: 'portal:myjob:want',
            component: './RecruitManage/PositionManage/Detail'
        },
        {
            // 我的人才库
            name: 'talentPool',
            path: '/personal/portal/recruit/talentPool',
            component: './MyRecruit/MyTalentPool/TalentPoolList',
            code: 'portal:myjob:talent',
            hideInMenu: true
        },
        {
            // 添加人才
            name: 'addTalentPool',
            path: '/personal/portal/recruit/talentPool/add',
            component: './MyRecruit/MyTalentPool/AddTalentPool',
            code: 'portal:myjob:talent',
            hideInMenu: true
        },
        {
            // 人才库详情
            name: 'talentPoolDetail',
            path: '/personal/portal/recruit/talentPool/detail',
            component: './MyRecruit/MyTalentPool/EditTalentPool',
            code: 'portal:myjob:talent',
            hideInMenu: true
        },
        {
            name: 'candidate',
            path: '/personal/portal/recruit/candidate',
            component: './MyRecruit/Candidate/index',
            code: 'portal:myjob:candidate',
            hideInMenu: true
        },
        {
            name: 'candidateDetail',
            path: '/personal/portal/recruit/candidate/detail',
            component: './MyRecruit/Candidate/Detail',
            hideInMenu: true,
            code: 'portal:myjob:candidate'
        },
        {
            // 我的面试
            name: 'interview',
            path: '/personal/portal/recruit/interview',
            component: './MyRecruit/MyInterview/TerviewList',
            code: 'portal:myjob:interview',
            hideInMenu: true
        },
        {
            // 发起面试
            name: 'addinterview',
            path: '/personal/portal/recruit/interview/add',
            component: './MyRecruit/MyInterview/AddInterview',
            hideInMenu: true,
            code: 'portal:myjob:interview'
        },
        {
            // 1.我发起的编辑面试
            name: 'editinterview',
            path: '/personal/portal/recruit/interview/edit',
            component: './MyRecruit/MyInterview/EditInterview',
            hideInMenu: true,
            code: 'portal:myjob:interview'
        },
        {
            // 2.我发起的查看面试详情
            name: 'seeinterview',
            path: '/personal/portal/recruit/interview/edit',
            component: './MyRecruit/MyInterview/EditInterview',
            hideInMenu: true,
            code: true
            // code: 'portal:myjob:interview'
        },
        {
            name: 'offer',
            path: '/personal/portal/recruit/offer',
            component: './MyRecruit/Offer/Offer',
            code: 'portal:myjob:offer',
            hideInMenu: true
        },
        {
            name: 'offerDetail',
            path: '/personal/portal/recruit/offer/detail',
            component: './MyRecruit/Offer/Detail/Detail',
            code: 'portal:myjob:offer',
            hideInMenu: true,
            editName: 'offerDetail'
        },
        //我的入转调离-转正
        {
            name: 'myRegularization',
            path: '/personal/portal/myOnboardAndLeave/myRegularization',
            component: './MyOnboardAndLeave/MyRegularization/index',
            code: true,
            hideInMenu: true
        },
        //我的入转调离-转正历史记录
        {
            name: 'myRegularHistory',
            path: '/personal/portal/myOnboardAndLeave/regularHistory',
            component: './OnboardAndLeave/Regularization/RegularHistory',
            code: true,
            hideInMenu: true
        },
        //我的入转调离-入职
        {
            name: 'myEntryManagement',
            path: '/personal/portal/myOnboardAndLeave/myEntryManagement',
            component: './OnboardAndLeave/EntryManagement/index',
            code: 'office:personnel:progress:entry',
            hideInMenu: true
        },
        {
            name: 'entryDetail',
            editName: 'addEntry',
            path: '/personal/portal/myOnboardAndLeave/addEntry',
            component: './OnboardAndLeave/EntryManagement/AddEntry',
            code: 'office:personnel:progress:entry',
            hideInMenu: true
        },
        //我的入转调离-调岗
        {
            name: 'myAdjustPost',
            path: '/personal/portal/myOnboardAndLeave/myAdjustPost',
            component: './MyOnboardAndLeave/MyAdjustPost/index',
            code: true,
            hideInMenu: true
        },
        //我的入转调离-调岗历史记录
        {
            name: 'myAdjustPostHistory',
            path: '/personal/portal/myOnboardAndLeave/adjustpostHistory',
            component: './OnboardAndLeave/AdjustPost/AdjustPostHistory',
            code: true,
            hideInMenu: true
        },
        //我的入转调离-离职
        {
            name: 'myQuitManagement',
            path: '/personal/portal/myOnboardAndLeave/myQuitManagement',
            component: './MyOnboardAndLeave/MyQuitManagement/index',
            code: true,
            hideInMenu: true
        },
        {
            path: '/personal/portal/attendance/mine/log',
            name: 'log',
            component: './Attendance/Mine/Log',
            hideInMenu: true,
            code: 'portal:myattendance:calendar',
            thirdLevel: true
        },
        {
            // 新的流程管理-流程发起
            path: '/personal/portal/apply',
            name: 'apply',
            component: './WorkFlow/Apply',
            code: 'portal:newmyflow:templatelist',
            hideInMenu: true,
            hideInSubMenu: true
        },
        {
            // 新的流程管理-可见流程列表
            path: '/personal/portal/flow/list',
            name: 'list',
            component: './WorkFlow/Flow/List/List',
            code: true,
            hideInMenu: true
        },
        {
            // 新的流程管理-我的申请
            path: '/personal/portal/myApplication/list',
            name: 'myApplication',
            component: './WorkFlow/Flow/MyApplication',
            code: 'portal:newmyflow:flowlist',
            hideInMenu: true
        },
        {
            // 新的流程管理-我的申请详情
            path: '/personal/portal/myApplication/detail',
            name: 'myApplicationDetail',
            component: './WorkFlow/Flow/MyApplication/Detail',
            code: true,
            hideInMenu: true,
            openTab: true
        },
        {
            // 新的流程管理-待我审批
            path: '/personal/portal/waitApproval/list',
            name: 'waitApproval',
            component: './WorkFlow/Flow/WaitApproval',
            code: 'portal:newmyflow:approvelist',
            hideInMenu: true
        },
        {
            // 新的流程管理-待我审批详情
            path: '/personal/portal/waitApproval/approvalDetail',
            name: 'approvalDetail',
            component: './WorkFlow/Flow/WaitApproval/Detail',
            code: 'portal:newmyflow:approvelist',
            hideInMenu: true,
            openTab: true
        },
        {
            // 新的流程管理-经我审批
            path: '/personal/portal/myAudited/list',
            name: 'myAudited',
            component: './WorkFlow/Flow/MyAudited',
            code: 'portal:newmyflow:passmelist',
            hideInMenu: true
        },
        {
            // 新的流程管理-经我审批详情
            path: '/personal/portal/myAudited/myAuditedDetail',
            name: 'myAuditedDetail',
            component: './WorkFlow/Flow/MyAudited/Detail',
            code: 'portal:newmyflow:passmelist',
            hideInMenu: true,
            openTab: true
        },
        {
            // 新的流程管理-待我阅读
            path: '/personal/portal/myAuditRead/list',
            name: 'myAuditReadNew',
            component: './WorkFlow/Flow/MyAuditRead',
            code: 'portal:newmyflow:cclist',
            hideInMenu: true
        },
        {
            // 新的流程管理-待我阅读详情
            path: '/personal/portal/myAuditRead/myAuditReadDetail',
            name: 'myAuditReadDetail',
            component: './WorkFlow/Flow/MyAuditRead/Detail',
            code: 'portal:newmyflow:cclist',
            hideInMenu: true,
            openTab: true
        },
        // 我的待办
        {
            name: 'todo',
            path: '/personal/todo',
            // code: 'portal:todo',
            code: 'portal:task',
            component: './Todo',
            openTab: true
        },
        // =============================================================== 消息提醒
        // {
        //     name: 'message',
        //     path: '/personal/message',
        //     component: './Message/Message',
        //     // code: 'portal:mine:main'
        //     code: true
        // },
        // =============================================================== 信息管理
        {
            name: 'message',
            path: '/personal/message',
            code: true,
            flatSubMenu: true,
            routes: [
                // =============================================================== 系统提示
                {
                    name: 'messageSystem',
                    path: '/personal/message/system',
                    code: 'portal:notice',
                    routes: [
                        {
                            name: 'notice',
                            path: '/personal/message/system/notice',
                            component: './Message/Message',
                            code: 'portal:notice',
                            iconType: 'bell',
                            hideInSubMenu: true
                        }
                    ]
                },
                // =============================================================== 我的邮箱
                {
                    name: 'mails',
                    path: '/personal/message/mails',
                    code: 'portal:mail',
                    component: './Mail/List'
                },
                {
                    name: 'sendMail',
                    path: '/personal/message/mails/create',
                    code: 'portal:mail',
                    hideInMenu: true,
                    component: './Mail/Form'
                },
                {
                    name: 'mailManage',
                    path: '/personal/message/mails/manage',
                    code: 'portal:mail',
                    hideInMenu: true,
                    component: './Mail/MailManage'
                },
                {
                    name: 'mailInfo',
                    path: '/personal/message/mails/mailInfo',
                    code: 'portal:mail',
                    hideInMenu: true,
                    component: './Mail/components/MailInfo'
                }
            ]
        },
        // =============================================================== 我的档案
        {
            name: 'info',
            path: '/personal/myInfo',
            code: 'portal:mine:message',
            component: './Organization/EmployeeManage/EmployeeDetail/EmployeeDetail',
            thirdLevel: true
        },
        // =============================================================== 我的反馈
        {
            name: 'feedback',
            path: '/personal/feedbacks',
            code: 'portal:question',
            component: './Feedback/Personal',
            hideInMenu: true
        },
        // =============================================================== 入职欢迎信
        {
            name: 'entryGuide',
            path: '/personal/entryGuide',
            code: true,
            component: './EntryManage/GuideInfo',
            hideInMenu: true
        },

        {
            name: 'todoProcessed',
            path: '/personal/todo/processed',
            code: 'portal:task',
            hideInMenu: true,
            component: './Todo/TodoProcessed'
        }
    ]
};
